@gjacobse said in How To: if exists; unknown filename:

I am using if exist to check for folders, and have done for a specific file name.
Can you search for *.PST

Yes.

Example:
IF EXIST C:\logs*.log (Echo Log file exists)